﻿//创建时间: 2010-10-11
//创建作者: 李 城
//功能说明: 系统参数 基本方法  xml基本元素枚举
//最后修改: 2010-10-11
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace TRPOP.Config
{
    /// <summary>
    /// CMS 数组操作类
    /// </summary>
    public static class VarAray
    {
        /// <summary>
        /// 获取变量的Attribute数组
        /// </summary>
        /// <returns></returns>
        public static ArrayList GetVarAttribute()
        {
            ArrayList oArrayList = new ArrayList();
            oArrayList.Add("VarKey");
            oArrayList.Add("VarName");
            oArrayList.Add("VarValue");
            oArrayList.Add("VarType");
            oArrayList.Add("VarDelType");
            return oArrayList;
        }
        /// <summary>
        /// 插件的config文件选项集
        /// </summary>
        /// <returns></returns>
        public static ArrayList GetPluginAttribute()
        {
            ArrayList oArrayList = new ArrayList();
            oArrayList.Add("PluginKey");
            oArrayList.Add("PluginName");
            oArrayList.Add("PluginEnable");
            oArrayList.Add("PluginControlURL");
            oArrayList.Add("PluginControlAction");
            return oArrayList;
        }
        /// <summary>
        ///  评论的config文件选项集
        /// </summary>
        /// <returns></returns>
        public static ArrayList GetRecommentAttribute()
        {
            ArrayList oArrayList = new ArrayList();
            oArrayList.Add("RecommentKey");
            oArrayList.Add("RecommentEnableAudit");
            oArrayList.Add("RecommentUsernameLengt");
            oArrayList.Add("RecommentContentMinLength");
            oArrayList.Add("RecommentContentMaxLength");
            oArrayList.Add("RecommentEnableTextReplace");
            oArrayList.Add("RecommentTextReplace");
            oArrayList.Add("RecommentTextReplaceList");
            oArrayList.Add("RecommentGetCountUrl");
            oArrayList.Add("RecommentSubmitUrl");
            oArrayList.Add("RecommentListUrl");
            oArrayList.Add("RecommentCheckCodeUrl");
            oArrayList.Add("recName");
            oArrayList.Add("recDetail");
            oArrayList.Add("indexid");
            oArrayList.Add("recvalidCode");
            return oArrayList;
        }

        /// <summary>
        /// 广告的config文件选项集
        /// </summary>
        /// <returns></returns>
        public static ArrayList GetAdvertisementAttribute()
        {
            ArrayList oArrayList = new ArrayList();
            oArrayList.Add("AdvertisemenKey");
            oArrayList.Add("AdvertisementEnable");
            oArrayList.Add("AdvertisementDynamicAccessUrl");
            oArrayList.Add("AdvertisementRoot");
            oArrayList.Add("AdvertisementDel");
            oArrayList.Add("AdvertisementTypeDefault");
            oArrayList.Add("AdvertisementUpLoadRoot");
            oArrayList.Add("AdvertisementSkipURL");
            return oArrayList;
        }

        /// <summary>
        /// 附件的config文件选项集
        /// </summary>
        /// <returns></returns>
        public static ArrayList GetFieldSettingAttribute()
        {

            ArrayList oArrayList = new ArrayList();
            oArrayList.Add("key");
            oArrayList.Add("defaultdelpage");
            oArrayList.Add("defaultdelimg");
            oArrayList.Add("defaultdelattr");
            oArrayList.Add("UpImageSize");
            oArrayList.Add("UpImageType");
            oArrayList.Add("blnPreserverAspectRatio");
            oArrayList.Add("ImgReSave");
            oArrayList.Add("UpImageMaxWidth");
            oArrayList.Add("UpAttachSize");
            oArrayList.Add("UpAttachType");
            return oArrayList;

        }

        /// <summary>
        /// 获取缓存设置选项集
        /// </summary>
        /// <returns></returns>
        public static ArrayList GetCacheSettingAttribute()
        {
            ArrayList oArrayList = new ArrayList();
            oArrayList.Add("CacheSetting");
            oArrayList.Add("CacheEnable");
            return oArrayList;
        }
    }
}
